cmake_minimum_required(VERSION 2.8.4)
project(WebSocketServer)

set(CMAKE_CXX_STANDARD 14)

set(CMAKE_CXX_FLAGS " -pthread -std=c++11")
# 链接 hashlib 库
link_libraries("/usr/local/lib/libhl++.a")
add_executable(WebSocketServer main.cpp src/Socket/Socket.cpp src/Socket/Socket.h src/common/cdef.h src/Socket/Protocol/WebSocket.cpp src/Socket/Protocol/WebSocket.h src/common/function.h src/common/function.cpp src/Timer/Timer.cpp src/Timer/Timer.h src/Socket/Protocol/Protocol.cpp src/Socket/Protocol/Protocol.h src/Socket/Worker.cpp src/Socket/Worker.h src/Log/Log.cpp src/Log/Log.h src/Socket/Tool/Buff.cpp src/Socket/Tool/Buff.h src/Socket/Event.cpp src/Socket/Event.h src/Socket/Protocol/Text.cpp src/Socket/Protocol/Text.h src/Socket/Protocol/TCP.cpp src/Socket/Protocol/TCP.h)
